﻿using System.Text.RegularExpressions;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;

namespace WebPattern.Core.Validators
{
    public class EmailValidator : RegexValidator
    {
        public EmailValidator() : base(@"^\s*([_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4}))\s*$", RegexOptions.IgnoreCase | RegexOptions.Singleline) { }
    }
}
